//
//  MyTaskViewController.m
//  GuoBuJiaForIphone
//
//  Created by zhangwo on 16/11/11.
//  Copyright © 2016年 GuoBuJia. All rights reserved.
//

#import "MyTaskViewController.h"

@interface MyTaskViewController ()

@end

@implementation MyTaskViewController

@synthesize newsTaskView = _newsTaskView;//新收到的任务
@synthesize myResponsibilityView = _myResponsibilityView;//我负责的
@synthesize myParticipateView = _myParticipateView;//我参与的
@synthesize newsReleaseView = _newsReleaseView;//发布任务


- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.leftBarButtonItem = [DSXUI barButtonWithStyle:DSXBarButtonStyleBack target:self action:@selector(back)];
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],NSForegroundColorAttributeName:[UIColor whiteColor]}];
    
//    self.tableView.frame = CGRectMake(0, 0, SWIDTH, SHEIGHT);
//    self.tableView.delegate = self;
//    self.tableView.dataSource = self;
//    self.tableView.backgroundColor = [UIColor whiteColor];
//    
//    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"newTaskCell"];
//    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@""];
//    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@""];
//    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@""];
    
}

- (void)back{
    if (![self.navigationController popViewControllerAnimated:YES]) {
        [self.navigationController dismissViewControllerAnimated:YES completion:nil];
    }
}

#pragma mark - refresh delegate
- (void)didStartRefreshing:(DSXRefreshView *)refreshView{
    [super didStartRefreshing:refreshView];
    self.currentPage = 1;
    self.isRefreshing = YES;
//    [self loadDataSource];
}

- (void)didStartLoading:(DSXRefreshView *)refreshView{
    [super didStartLoading:refreshView];
    self.currentPage++;
    self.isRefreshing = NO;
//    [self loadDataSource];
}

//- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
//{
//    return [self.dataList count];
//}
//
//- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
//{
//    return 10;
//}
//
//- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    return 130;
//}
//
//- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    if (indexPath.section == 0) {
//        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"newTaskCell" forIndexPath:indexPath];
//        return cell;
//    }
//    if (indexPath.section == 1) {
//        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"" forIndexPath:indexPath];
//        return cell;
//    }
//    if (indexPath.section == 2) {
//        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"" forIndexPath:indexPath];
//        return cell;
//    }
//    if (indexPath.section == 3) {
//        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"" forIndexPath:indexPath];
//        return cell;
//    }
//    
//    return [[UITableViewCell alloc] init];
//}

//- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
//{
//    return 0.001;
//}
//
//- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
//{
//    return 10;
//}


@end
